// 打印记录表
const {DataTypes, db } = require("../db");
db.define('printRecord', {
id: {type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true,comment:'表自增ID'},
tenantId:{type: DataTypes.INTEGER,allowNull:false,comment:'租户ID'}, 
taskId:{type: DataTypes.STRING(64),comment:'任务ID'}, 
iid:{type: DataTypes.INTEGER,comment:'订单ID'}, 
printNo:{type: DataTypes.INTEGER,comment:'打印次数'}, 
printData:{type: DataTypes.TEXT,comment:'打印内容'}, 
stat:{type: DataTypes.INTEGER,comment:'打印状态'}, 
printBy:{type: DataTypes.INTEGER,comment:'用户ID'}, 
printAt:{type: DataTypes.DATE,comment:'打印时间'}, 

}, {
    tableName: 'print_record',
    timestamps: false,
    comment: '打印记录表'
});